package com.kifas.model.xml;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class PenjualanDetailModel implements Serializable {

	private static final long serialVersionUID = 1033113704912573911L;

	private Long idPenjualanDetail;
	@XmlElement(name = "barangModel", type = BarangModel.class)
	private BarangModel barang;
	private Long qty;
	private BigDecimal price;
	@XmlElement(name = "gudangModel", type = GudangModel.class)
	private GudangModel gudang;
	private BigDecimal subTotal;
	private String bulanKadaluarsa;
	private BigDecimal discount;
	private BigDecimal pajak;
	private BigDecimal discount2;
	private String createdBy;

	public PenjualanDetailModel() {
	}

	public PenjualanDetailModel(Long idPenjualanDetail, BarangModel barang, Long qty, BigDecimal price, SatuanModel satuan, GudangModel gudang,
			BigDecimal subTotal, BigDecimal discount, BigDecimal pajak, String bulanKadaluarsa, String createdBy) {
		this.idPenjualanDetail = idPenjualanDetail;
		this.barang = barang;
		this.qty = qty;
		this.price = price;
		this.gudang = gudang;
		this.subTotal = subTotal;
		this.discount = discount;
		this.pajak = pajak;
		this.bulanKadaluarsa = bulanKadaluarsa;
		this.createdBy = createdBy;
	}

	public Long getIdPenjualanDetail() {
		return idPenjualanDetail;
	}

	public void setIdPenjualanDetail(Long idPenjualanDetail) {
		this.idPenjualanDetail = idPenjualanDetail;
	}

	public BarangModel getBarang() {
		return barang;
	}

	public void setBarang(BarangModel barang) {
		this.barang = barang;
	}

	public Long getQty() {
		return qty;
	}

	public void setQty(Long qty) {
		this.qty = qty;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public GudangModel getGudang() {
		return gudang;
	}

	public void setGudang(GudangModel gudang) {
		this.gudang = gudang;
	}

	public BigDecimal getSubTotal() {
		return subTotal;
	}

	public void setSubTotal(BigDecimal subTotal) {
		this.subTotal = subTotal;
	}

	public BigDecimal getDiscount2() {
		return discount2;
	}

	public void setDiscount2(BigDecimal discount2) {
		this.discount2 = discount2;
	}

	public BigDecimal getDiscount() {
		return discount;
	}

	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}

	public BigDecimal getPajak() {
		return pajak;
	}

	public void setPajak(BigDecimal pajak) {
		this.pajak = pajak;
	}

	public String getBulanKadaluarsa() {
		return bulanKadaluarsa;
	}

	public void setBulanKadaluarsa(String bulanKadaluarsa) {
		this.bulanKadaluarsa = bulanKadaluarsa;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedBy() {
		return createdBy;
	}
}
